package com.thyme.content.sentineltest;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * @author thyme
 * @ClassName TestControllerBlockHandlerClass
 * @Description TODO
 * @Date 2019/11/12 14:38
 */
@Slf4j
public class TestControllerBlockHandlerClass {

    public static String block(String a, BlockException e) {
        log.warn("限流，或者降级了 block",e);
        return "限流，或者降级 block";
    }
}
